<?php

$userid = get_loggedin_userid();
//$userid = get_input('user_id');
$login = get_input('login');
$domain = get_input('domain');
 
if(add_whiteboard_xmpp_account($userid, $login, $domain)) {
    echo json_encode(export_result(200, "1"));
} else {
    echo json_encode(export_result(400, "0"));
}

?>